package cn.swing.his.passport.pojo.domain;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

@Data
public class DoctorAutority implements Serializable, GrantedAuthority {

    private String name;

    private void setAuthority(String authority){
        this.name = authority;
    }
    @Override
    public String getAuthority() {
        return name;
    }
}
